// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'package:ceramics/util/ab_api.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:ceramics/main.dart';

void main() {
  group('API Test', () {
    var api = ABApi(isTest: true);
    WidgetsFlutterBinding.ensureInitialized();
    test('登录接口', () async {
      var oauth = await api.oauth(4, '123456');
      expect(oauth.token, isNotEmpty);
    });
  });
}


